<?php
    $this->breadcrumbs = array(
        t('Customer Loan Setting') => array('customerloansetting/index'),
        //$customerloansetting->id => array('view', 'id' => $customerloansetting->id),
        t('Pay'),
    );

    /* $this->menu=array(
      array('label'=>'List CustomerLoanPayment','url'=>array('index')),
      array('label'=>'Create CustomerLoanPayment','url'=>array('create')),
      array('label'=>'View CustomerLoanPayment','url'=>array('view','id'=>$model->id)),
      array('label'=>'Manage CustomerLoanPayment','url'=>array('admin')),
      ); */
?>

<h1><?php echo t('Customer Loan Payment') . $customerloansetting->loan_code; ?></h1>

<?php
    $dataProvider = new CActiveDataProvider('CustomerLoanSetting', array('data' => array($customerloansetting)));
    $this->widget('bootstrap.widgets.TbGridView', array(
        'type' => 'striped bordered condensed',
        'dataProvider' => $dataProvider,
        'template' => '{items}',
        'columns' => array(
            'id',
            'customer_code',
            'loan_code',
            'loan_amount',
            'interest',
            'period',
            array('name' => 'period_type', 'value' => 't($data->period_type)'),
            'days_of_period',
            'paying_amount',
            'withdraw_amount',
            'installments',
            array('name' => 'active', 'value' => 't($data->active)'),
            array('name' => 'status', 'value' => 't($data->status)'),
            'createtime',
        ),
    ));
?>
<?php
    echo $this->renderPartial('_payment', array(
        'customerloanpayments' => $customerloanpayments,
        'customerloansetting' => $customerloansetting,
    ));
?>